Keep XF86 keysym names working
authorMatthias Clasen <mclasen@redhat.com>
Fri, 19 Apr 2013 23:29:13 +0000 (19:29 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 20 Apr 2013 00:11:39 +0000 (20:11 -0400)
These names are unfortunately stored in gsettings around
the world, so we can't really stop supporting them.

gdk/gdkkeynames.c

index 3767e291567f4c404e94ccd67e95b16ad6c78559..f8dfc1e5c08acb6b2a32565595cd7cd51fcf5f7b 100644 (file)
@@ -90,7 +90,10 @@ _gdk_keyval_from_name (const gchar *keyval_name)
   gdk_key *found;
 
   g_return_val_if_fail (keyval_name != NULL, 0);
-  
+
+  if (strncmp (keyval_name,"XF86", 4) == 0)
+    keyval_name += 4;
+
   found = bsearch (keyval_name, gdk_keys_by_name,
                   GDK_NUM_KEYS, sizeof (gdk_key),
                   gdk_keys_name_compare);